
<select name="{$field.name}" class="form-control" {$field.extra_attr|default=''}>
    {foreach name="field.options" item="option" key="option_key"}
    
        {php}if(is_array($option)):{/php}
            <option value="{$option.id}" {present name="field.value"}{eq name="field.value" value="$option.id"} selected{/eq}{/present}>
                {$option.title_show}
            </option>
        {php}else:{/php}
            <option value="{$option.id}" {present name="field.value"}{eq name="field.value" value="$option.id"} selected{/eq}{/present}>{$option}</option>
        {php}endif;{/php}
    {/foreach}
</select>
